<template>
  <footer class="footer">
    <!-- 第一分区：Logo、联系信息、导航链接、二维码 -->
    <div class="footer-section footer-section-1">
      <div class="footer-container">
        <div class="section-1-content">
          <!-- 第一行：Logo和域名 -->
          <div class="section-1-top">
            <div class="footer-logo">
              <img src="~/assets/images/img/B-01首页_slices/容器 1793.png" alt="轻图网" class="logo-img">
            </div>
            <div class="logo-text">
              <img src="~/assets/images/img/B-01首页_slices/路径.png" alt="QINGPSD.COM" class="domain-img">
            </div>
          </div>

          <!-- 第二行：联系信息、导航链接、法律声明（左侧）和二维码（右侧） -->
          <div class="section-1-bottom">
            <!-- 左侧：联系信息、导航链接、法律声明 -->
            <div class="section-1-left-content">
              <!-- 第一行：客服邮箱/工作日 -->
              <div class="section-1-contact-left section-1-row-1-left">
                <div class="contact-info-row contact-info-box">
                  <img src="~/assets/images/img/B-01首页_slices/容器.png" alt="邮箱图标" class="contact-icon">
                  <p>客服邮箱：Q001@qingpsd.com</p>
                  <span class="contact-separator">|</span>
                  <p>工作日 9:00-18:00</p>
                </div>
              </div>

              <!-- 第一行：导航链接 -->
              <div class="section-1-nav-right section-1-row-1-right">
                <div class="footer-nav-links">
                  <div class="nav-row">
                    <a href="#">关于我们</a>
                    <span class="nav-separator">|</span>
                    <a href="#">上传必读</a>
                    <span class="nav-separator">|</span>
                    <a href="#">版权声明</a>
                  </div>
                </div>
              </div>

              <!-- 第二行：QQ/微信 -->
              <div class="section-1-contact-left section-1-row-2-left">
                <div class="contact-info-row contact-info-box-transparent">
                  <p>QQ：5658976544</p>
                  <p>微信：5658976544</p>
                </div>
              </div>

              <!-- 第二行：导航链接 -->
              <div class="section-1-nav-right section-1-row-2-right">
                <div class="footer-nav-links">
                  <div class="nav-row">
                    <a href="#">下载说明</a>
                    <span class="nav-separator">|</span>
                    <a href="#">网站协议</a>
                    <span class="nav-separator">|</span>
                    <a href="#">帮助中心</a>
                  </div>
                </div>
              </div>

              <!-- 第三行：法律声明 -->
              <div class="section-1-legal">
                <div class="legal-disclaimer">
                  <p>轻图网是共享网络服务平台方，平台上的作品均由设计师用户自行上传并发布，若您的权利被侵害，请联系客服，我们将及时为您处理。 本站法律顾问：奇迹律师事务所 本站法律顾问：奇迹律师事务所</p>
                </div>
              </div>
            </div>

            <!-- 右侧：二维码 -->
            <div class="section-1-right">
              <div class="footer-qr">
                <div class="qr-code">
                  <div class="qr-placeholder">
                    <img src="~/assets/images/img/B-01首页_slices/矩形 94.png" alt="移动端网站二维码" class="qr-img">
                  </div>
                  <p>移动端网站</p>
                </div>
                <div class="qr-code">
                  <div class="qr-placeholder">
                    <img src="~/assets/images/img/B-01首页_slices/矩形 95.png" alt="微信公众号二维码" class="qr-img">
                  </div>
                  <p>微信公众号</p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 第三分区：合作伙伴logo -->
    <div class="footer-section footer-section-3">
      <div class="footer-container">
        <div class="partner-logos">
          <img 
            src="~/assets/images/img/B-01首页_slices/组 68.png" 
            alt="合作伙伴"
            class="partner-logo-img"
          >
        </div>
      </div>
    </div>

    <!-- 第四分区：相关平台链接 -->
    <div class="footer-section footer-section-4">
      <div class="footer-container">
        <div class="platform-links">
          <a href="#">视觉中国</a>
          <a href="#">视觉中国</a>
          <a href="#">喜马拉雅</a>
          <a href="#">喜马拉雅</a>
          <a href="#">站酷</a>
          <a href="#">站酷</a>
          <a href="#">小红书</a>
          <a href="#">小红书</a>
          <a href="#">小红书</a>
          <a href="#">小红书</a>
          <a href="#">知乎</a>
          <a href="#">知乎</a>
        </div>
      </div>
    </div>

    <!-- 第五分区：版权信息 -->
    <div class="footer-section footer-section-5">
      <div class="footer-container">
        <div class="copyright">
          <p>沪ICP备18025094号-1 | 增值电信业务经营许可证:沪B2-20210673 | 沪公网安备31010602002795号 | Copyright © 2024 轻图网</p>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup>
import { ref } from 'vue'

const partners = ref(['花瓣', 'Baidu大脑', '腾讯云', 'Tencent', '新浪微博', '云账户', '支付宝', '微信支付', '淘宝云', 'Tencent'])
</script>

<style scoped>
.footer {
  background: #2E2E30;
  color: #999;
  width: 100%;
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.footer-section {
  padding: 30px 0;
}

/* 第一分区 */
.footer-section-1 {
  padding: 40px 0;
}

.section-1-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 第一行：Logo和域名 */
.section-1-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.domain-img {
  height: auto;
  width: auto;
}

/* 第二行：联系信息、导航链接、法律声明（左侧）和二维码（右侧） */
.section-1-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
}

/* 左侧内容区域 */
.section-1-left-content {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 30px;
  min-width: 0;
}

/* 第一行左侧：客服邮箱/工作日 */
.section-1-row-1-left {
  grid-column: 1;
  grid-row: 1;
}

/* 第一行右侧：导航链接 */
.section-1-row-1-right {
  grid-column: 2;
  grid-row: 1;
}

/* 第二行左侧：QQ/微信 */
.section-1-row-2-left {
  grid-column: 1;
  grid-row: 2;
}

/* 第二行右侧：导航链接 */
.section-1-row-2-right {
  grid-column: 2;
  grid-row: 2;
}

.section-1-contact-left {
  flex: 0 0 auto;
  min-width: 200px;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: -8px;
}

.contact-info-box {
  border: 1px solid #555;
  border-radius: 4px;
  padding: 8px 12px;
}

.contact-info-box-transparent {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 12px;
}

.contact-info-box-transparent.contact-info-row p {
  color: #666 !important;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info-row p,
.contact-info-col p {
  font-size: 12px;
  color: #B3B3B3;
  line-height: 1.6;
  margin: 0;
}

.contact-separator {
  color: #555;
  font-size: 12px;
}

.section-1-nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: flex-end;
}

.nav-row a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-row a:hover {
  color: #19D8B6;
}

.nav-separator {
  color: #555;
  font-size: 12px;
}

/* 法律声明 */
.section-1-legal {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 20px;
}

.legal-disclaimer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-disclaimer p {
  font-size: 11px;
  color: #666;
  line-height: 1.8;
}

.section-1-right {
  flex-shrink: 0;
}

.footer-qr {
  display: flex;
  gap: 20px;
}

.qr-code {
  text-align: center;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: #3a3a3a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-code p {
  font-size: 12px;
  color: #666;
}

/* 第三分区：合作伙伴 */
.footer-section-3 {
  padding: 25px 0;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.partner-logo-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 第四分区：相关平台链接 */
.footer-section-4 {
  padding-top: 20px;
  border-bottom: 1px solid #717172;
}

.platform-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
}

.platform-links a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}

.platform-links a:hover {
  color: #19D8B6;
}

/* 第五分区：版权信息 */
.footer-section-5 {
  padding: 20px 0;
}

.copyright {
  text-align: center;
}

.copyright p {
  font-size: 11px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
</style>

